//
//  NSLayoutConstraint+ZMExtension.swift
//  zhonglibang
//
//  Created by Rowling on 2021/1/4.
//

import UIKit

extension NSLayoutConstraint {
//    public func objc_setAssociatedObject(_ object: Any, _ key: UnsafeRawPointer, _ value: Any?, _ policy: objc_AssociationPolicy)

    
//    open var constant: CGFloat {
//        set {
//
//        }
//        get {
//
//        }
//    }
    
    fileprivate struct openAspectAssociateKeys {
        static var aspect = false
    }
    
    @IBInspectable public var openAspect : Bool {
        get {
//            guard  let aspect = objc_getAssociatedObject(self, &openAspectAssociateKeys.aspect) as? Bool else {
//                return false
//            }
            return false
        }
        set {
            if newValue == true {
                constant = rpx(constant)
            }
        }
    }
    
    
    
    
}
